package com.com.spring.student.register;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class StuTest {
    @Test
public void test(){
    ClassPathXmlApplicationContext Stu = new ClassPathXmlApplicationContext("Stu.xml");
    Stu stu = (Stu) Stu.getBean("stu");
        System.out.println(stu);
   stu.toString();
        Stu.close();
    }
}
